package com.ibeetl.admin.api.dao;

import com.ibeetl.admin.api.entity.Travel_video_list;
import org.beetl.sql.mapper.BaseMapper;
import org.beetl.sql.mapper.annotation.SqlResource;
import org.beetl.sql.mapper.annotation.Update;

import java.util.Date;
import java.util.List;
import java.util.Map;

@SqlResource("api.travelVideo")
public interface TravelVideoDao extends BaseMapper<Travel_video_list> {

    List<Travel_video_list> queryByAttractionId(long attractionId,long userId);

    List<Long> queryNewIdByAttractionId(long attractionId,long userId);

    List<Travel_video_list> queryByAttsId(long attsId,long userId);
    @Update
    void updateState(Long videoId,int state);
    @Update
    void save(Map<String, Object> beanToMap);
    @Update
    void deleteByAttsId(long attsId);
}
